using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_ObjectRefsMap : EntityTypeConfiguration<t_ObjectRefs>
    {
        public t_ObjectRefsMap()
        {
            // Primary Key
            this.HasKey(t => t.FProcName);

            // Properties
            this.Property(t => t.FProcName)
                .IsRequired()
                .HasMaxLength(50);

            this.Property(t => t.FSystem)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("t_ObjectRefs");
            this.Property(t => t.FProcName).HasColumnName("FProcName");
            this.Property(t => t.FSystem).HasColumnName("FSystem");
        }
    }
}
